﻿@model ICollection<Ajax_Learning.Models.Restaurent>
@{
    ViewBag.Title = "AjaxInJsFile";
}

<h2>AjaxInJsFile</h2>
<form method="get" action="@Url.Action("AjaxInJsFile")"
      data-otf-ajax="true" data-otf-target="#restaurentList">
    <input type="text" name="s" placeholder="Search..." />
    <input type="submit" value="Search..." />
</form>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<div id="restaurentList">
    @Html.Partial("_AjaxInJsFileRestaurents", Model)
</div>